package com.edgardeng.education.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.edgardeng.education.entity.SchoolClass;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Map;

/**
 * <p>
 * 学校班级 Mapper 接口
 * </p>
 *
 * @author edgardeng
 * @since 2020-04-28
 */
public interface SchoolClassMapper extends BaseMapper<SchoolClass> {

    // 关联查询 一对一
    IPage<SchoolClass> schoolClassListWithSchool(Page page, SchoolClass form);

    // 关联查询 一对多
    IPage<SchoolClass> schoolClassListWithStudent(Page page, SchoolClass form);

}
